<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<link rel="shortcut icon" href="images/content/favicon.ico" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />

<meta name="robots" content="index, follow" />
<meta name="keywords" content="" />
<meta name="title" content="" />
<meta name="description" content="" />
<title>Union Corp</title>
<link rel="shortcut icon" href="./images/favicon.ico" />

  <%= stylesheet_link_tag "application", "unioncorp/style", "unioncorp/color", "unioncorp/inner", "unioncorp/nivo-slider", "unioncorp/prettyPhoto", "unioncorp/login"  %>
  <%= javascript_include_tag "application", "unioncorp/", "form"  %>
  <%= csrf_meta_tags %>

<script type="text/javascript">
jQuery(document).ready(function(){
	//Menu
	jQuery("ul.sf-menu").supersubs({
	minWidth		: 12,		// requires em unit.
	maxWidth		: 27,		// requires em unit.
	extraWidth		: 1	// extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
						   // due to slight rounding differences and font-family
	}).superfish();  // call supersubs first, then superfish, so that subs are
					 // not display:none when measuring. Call before initialising
					 // containing tabs for same reason.
});
//Slider
jQuery(window).load(function() {
	jQuery('#slider').nivoSlider({
	effect: 'fold',
	slices:15,
	animSpeed:500, //Slide transition speed
	pauseTime:5000,
	controlNav: false,
	directionNavHide: false,
	prevText: 'prev',
	nextText: 'next',
	startSlide:0, //Set starting Slide (0 index)
	directionNav:true, //Next &amp; Prev
	afterLoad: function(){
		jQuery(".nivo-caption").animate({top:"60"}, {easing:"easeOutBack", duration: 500})
		},
		beforeChange: function(){
		jQuery(".nivo-caption").animate({top:"-300"}, {easing:"easeInBack", duration: 500})
		},
		afterChange: function(){
		jQuery(".nivo-caption").animate({top:"60"}, {easing:"easeOutBack", duration: 500})
		}
	});

});

</script>

<meta charset="UTF-8">

</head>
<body>

<div id="wrapper">
    <div id="wrapper-top">
    	<div class="container">
        	<div class="twelve columns">
                <div id="top">
                    <div id="logo"><a href="./index.html"><img src="/assets/unioncorp/logo.png" alt="" /></a></div>


                  <div id="container">
  <div id="toploginnav" class="toploginnav"> Have an account? <a href="#" class="signin"><span>Sign in</span></a> </div>
  <fieldset id="signin_menu">
		<%= render "devise/sessions/new" %>    
  </fieldset>
</div>


                </div>
                <div id="nav">
                    <ul id="topnav" class="sf-menu">
                        <li><a href="#"  class="current">Anasayfa</a></li>
                        <li><a href="#">Karistir</a></li>
                        <li><a href="#">Hakkimizda</a></li>
                        <li><a href="#">Iletisim</a></li>
                        <li><a href="#">Blog</a></li>
                        <li><a href="#">Uyelik Bilgilerim</a></li>
                    </ul><!-- #topnav -->
                </div><!-- #nav -->
            </div>
        </div><!-- .container -->
    </div><!-- end #wrapper-top -->

    <%= yield %>

    <div id="wrapper-footer">
    	<div class="container">
        	<div class="twelve columns">
                <div id="footer_text">
                	Copyright &copy;2011 Union Corp.  All Rights Reserved
                </div>
            </div>
        </div>
    </div><!-- end #wrapper-footer -->
</div><!-- end #wrapper -->

<script type="text/javascript">
        $(document).ready(function() {

            $(".signin").click(function(e) {
				e.preventDefault();
                $("fieldset#signin_menu").toggle();
				$(".signin").toggleClass("menu-open");
            });

			$("fieldset#signin_menu").mouseup(function() {
				return false
			});
			$(document).mouseup(function(e) {
				if($(e.target).parent("a.signin").length==0) {
					$(".signin").removeClass("menu-open");
					$("fieldset#signin_menu").hide();
				}
			});

        });
</script>
<script src="javascripts/jquery.tipsy.js" type="text/javascript"></script>
<script type='text/javascript'>
    $(function() {
	  $('#forgot_username_link').tipsy({gravity: 'w'});
    });
  </script>

</body>
</html>
